package leetcode.hard.maxvalueafterreverse;

import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import util.SolutionValidator;

public class SolutionTest {
    private static Solution solution;

    @BeforeClass
    public static void setup() {
        SolutionValidator.checkSolved(Solution.class);
        solution = new Solution();
    }

    @AfterClass
    public static void tearUp() {
        solution = null;
    }

    @Test
    public void test1() {
        int[] nums = new int[]{2,3,1,5,4};
        Assert.assertEquals(10, solution.maxValueAfterReverse(nums));
    }

    @Test
    public void test2() {
        int[] nums = new int[]{2,4,9,24,2,1,10};
        Assert.assertEquals(68, solution.maxValueAfterReverse(nums));
    }
}
